package com.sun.showcase.client.query.mall;

import com.sun.showcase.client.domain.mall.Sku;
import com.sun.showcase.pojo.SearchModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SkuQuery extends SearchModel<Sku> implements Serializable {
    
  private static final long serialVersionUID = 3148176768559230877L;
    

	  /**
     * ID       db_column: id 
     */	
	private String id;
	  /**
     * 编码       db_column: code
     */
	private String code;
	  /**
     * 名称       db_column: name
     */
	private String name;
	  /**
     * 规格       db_column: format
     */
	private String format;
	  /**
     * 厂家指导价       db_column: guide_price
     */
	private Double guidePrice;
	  /**
     * 进价       db_column: purchase_price
     */
	private Double purchasePrice;
	  /**
     * 标价       db_column: sell_price
     */
	private Double sellPrice;
	  /**
     * 库存数量       db_column: count
     */
	private Integer count;
	  /**
     * 销售数量       db_column: sell_count
     */
	private Integer sellCount;
	  /**
     * 累计销量       db_column: sell_count_total
     */
	private Integer sellCountTotal;
	  /**
     * 商品id       db_column: goods_id
     */
	private String goodsId;
	  /**
     * 商品名       db_column: goods_name
     */
	private String goodsName;
	  /**
     * sku属性id       db_column: sku_attribute_id
     */
	private String skuAttributeId;
	  /**
     * sku json 值       db_column: sku_json_value
     */
	private String skuJsonValue;
	  /**
     * 是否出售（1是0否）       db_column: salability
     */
	private String salability;
	  /**
     * 有效标记(默认为1有效 0无效）       db_column: active_flag
     */
	private String activeFlag;
	  /**
     * 创建人ID       db_column: create_by
     */
	private String createBy;
	  /**
     * 创建人姓名       db_column: create_by_name
     */
	private String createByName;
	  /**
     * 创建时间       db_column: create_date
     */
	private java.util.Date createDate;
	  /**
     * 修改人ID       db_column: modified_by
     */
	private String modifiedBy;
	  /**
     * 修改人姓名       db_column: modified_by_name
     */
	private String modifiedByName;
	  /**
     * 修改时间       db_column: modified_date
     */
	private java.util.Date modifiedDate;
	/**
	 * 封装修改时的where条件  key为数据库字段值  value为条件值
	 * */
	private Map<String,Object> searchMap = new HashMap<String,Object>();
	/**
	 * 数据表主键id的数组
	 * */
	private String ids[];

	private List<KVObject> skus;

	public List<KVObject> getSkus() {
		return skus;
	}

	public void setSkus(List<KVObject> skus) {
		this.skus = skus;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String value) {
		this.code = value;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String value) {
		this.name = value;
	}

	public String getFormat() {
		return this.format;
	}

	public void setFormat(String value) {
		this.format = value;
	}

	public Double getGuidePrice() {
		return this.guidePrice;
	}

	public void setGuidePrice(Double value) {
		this.guidePrice = value;
	}

	public Double getPurchasePrice() {
		return this.purchasePrice;
	}

	public void setPurchasePrice(Double value) {
		this.purchasePrice = value;
	}

	public Double getSellPrice() {
		return this.sellPrice;
	}

	public void setSellPrice(Double value) {
		this.sellPrice = value;
	}

	public Integer getCount() {
		return this.count;
	}

	public void setCount(Integer value) {
		this.count = value;
	}

	public Integer getSellCount() {
		return this.sellCount;
	}

	public void setSellCount(Integer value) {
		this.sellCount = value;
	}

	public Integer getSellCountTotal() {
		return this.sellCountTotal;
	}

	public void setSellCountTotal(Integer value) {
		this.sellCountTotal = value;
	}

	public String getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(String value) {
		this.goodsId = value;
	}

	public String getGoodsName() {
		return this.goodsName;
	}

	public void setGoodsName(String value) {
		this.goodsName = value;
	}

	public String getSkuAttributeId() {
		return this.skuAttributeId;
	}

	public void setSkuAttributeId(String value) {
		this.skuAttributeId = value;
	}

	public String getSkuJsonValue() {
		return this.skuJsonValue;
	}

	public void setSkuJsonValue(String value) {
		this.skuJsonValue = value;
	}

	public String getSalability() {
		return this.salability;
	}

	public void setSalability(String value) {
		this.salability = value;
	}

	public String getActiveFlag() {
		return this.activeFlag;
	}

	public void setActiveFlag(String value) {
		this.activeFlag = value;
	}

	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String value) {
		this.createBy = value;
	}

	public String getCreateByName() {
		return this.createByName;
	}

	public void setCreateByName(String value) {
		this.createByName = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public String getModifiedBy() {
		return this.modifiedBy;
	}

	public void setModifiedBy(String value) {
		this.modifiedBy = value;
	}

	public String getModifiedByName() {
		return this.modifiedByName;
	}

	public void setModifiedByName(String value) {
		this.modifiedByName = value;
	}

	public java.util.Date getModifiedDate() {
		return this.modifiedDate;
	}

	public void setModifiedDate(java.util.Date value) {
		this.modifiedDate = value;
	}

	public Map<String, Object> getSearchMap() {
		return searchMap;
	}

	public void setSearchMap(Map<String, Object> searchMap) {
		this.searchMap = searchMap;
	}

	public String[] getIds() {
		return ids;
	}

	public void setIds(String[] ids) {
		this.ids = ids;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
	}
	
}

